import request from '@/utils/request'

/**
 * 销售额卡片下钻-整场列表
 * @param  biProjectCode  bi项目code
 * @param  startDate  开始日期
 * @param  endDate  结束日期
 * @param  timeType  日期类型 日 月 年
 * @param  bizSpecType  含汽车+苹果
 * @param  pageNo
 * @param  pageSize
 */
const wholeSceneListApi = ({ biProjectCode, startDate, endDate, timeType, bizSpecType, pageNo, pageSize }) => {
    const data = {
        biProjectCode,
        startDate,
        endDate,
        timeType,
        bizSpecType,
        pageNo,
        pageSize,
    }
    return request({
        url: 'portal-server/v1/api/whole/wholeSceneList',
        method: 'post',
        data: data
    })
};
/**
 * 销售额卡片下钻-整场列表-导出
 * @param  biProjectCode  bi项目code
 * @param  startDate  开始日期
 * @param  endDate  结束日期
 * @param  timeType  日期类型 日 月 年
 */
const wholeSceneExportApi = ({ biProjectCode, startDate, endDate, timeType }) => {
    const data = {
        biProjectCode,
        startDate,
        endDate,
        timeType,
    }
    return request({
        url: 'portal-server/v1/api/whole/wholeSceneExport',
        method: 'post',
        data: data,
        responseType: 'blob'
    })
};
/**
 * 销售额卡片下钻-整场品牌列表-导出
 */
const wholeBrandExportApi = ({ biProjectCode, dataTime, brandname, floorname, saleMonitor, firstTraderelationName, twoTraderelationName, threeTraderelationName, renttypedesc, cashtype, type }) => {
    let seeAll = ['全部']
    const data = {
        biProjectCode,
        dataTime,
        type,
        brandname: brandname.length == 0 ? seeAll : brandname,
        floorname: floorname.length == 0 ? seeAll : floorname,
        saleMonitor: saleMonitor.length == 0 ? seeAll : saleMonitor,
        renttypedesc: renttypedesc.length == 0 ? seeAll : renttypedesc,
        cashtype: cashtype.length == 0 ? seeAll : cashtype,
        firstTraderelationName: firstTraderelationName.length == 0 ? seeAll : firstTraderelationName,
        twoTraderelationName: twoTraderelationName.length == 0 ? seeAll : twoTraderelationName,
        threeTraderelationName: threeTraderelationName.length == 0 ? seeAll : threeTraderelationName,
    }
    return request({
        url: 'portal-server/v1/api/whole/wholeBrandExport',
        method: 'post',
        data: data,
        responseType: 'blob'
    })
};
/**
 * 销售额卡片下钻-整场列表-整场品牌列表
 * @param  biProjectCode  bi项目code
 * @param  dataTime  开始日期 日：yyyy-MM-dd 月：yyyy-MM 年：yyyy
 * @param  brandname  品牌
 * @param  floorname  楼层
 * @param  saleMonitor  销售监控（，分割：固定租金，两者取高，提成租金）
 * @param  renttypedesc  租金架构（，分割：超高；超低; 正常）
 * @param  cashtype  销售设备（，分割：独立收银，POS机，采集器）
 * @param  firstTraderelationName  一级业态
 * @param  twoTraderelationName  二级业态
 * @param  threeTraderelationName  三级业态
 * @param  bizSpecType  含汽车+苹果
 * @param  type  0 日，1月，2年
 * @param  pageNo
 * @param  pageSize
 */
const wholeBrandListApi = ({ biProjectCode, dataTime, brandname, floorname, saleMonitor, firstTraderelationName, twoTraderelationName, threeTraderelationName, renttypedesc, cashtype, bizSpecType, type, pageNo, pageSize }) => {
    let seeAll = ['全部']
    const data = {
        biProjectCode,
        dataTime,
        type,
        pageNo,
        pageSize,
        brandname: brandname.length == 0 ? seeAll : brandname,
        floorname: floorname.length == 0 ? seeAll : floorname,
        saleMonitor: saleMonitor.length == 0 ? seeAll : saleMonitor,
        renttypedesc: renttypedesc.length == 0 ? seeAll : renttypedesc,
        cashtype: cashtype.length == 0 ? seeAll : cashtype,
        firstTraderelationName: firstTraderelationName.length == 0 ? seeAll : firstTraderelationName,
        twoTraderelationName: twoTraderelationName.length == 0 ? seeAll : twoTraderelationName,
        threeTraderelationName: threeTraderelationName.length == 0 ? seeAll : threeTraderelationName,
        bizSpecType
    }
    return request({
        url: 'portal-server/v1/api/whole/wholeBrandList',
        method: 'post',
        data: data
    })
};
/**
 * 销售额卡片下钻-整场列表-整场品牌列表 - 品牌下拉
 * @param  biProjectCode  bi项目code
 * @param  dataTime  开始日期 日：yyyy-MM-dd 月：yyyy-MM 年：yyyy
 * @param  timeType  日 月 年
 */
const wholeBrandDownApi = ({ biProjectCode, dataTime, timeType }) => {
    const data = {
        biProjectCode,
        dataTime,
        timeType
    }
    return request({
        url: 'portal-server/v1/api/whole/wholeBrandDown',
        method: 'post',
        data: data
    })
};

/**
 * 销售额卡片下钻-整场列表-品牌列表 - 品牌下拉
 * @param  biProjectCode  bi项目code
 * @param  startTime  开始日期 日：yyyy-MM-dd 月：yyyy-MM 年：yyyy
 * @param  endTime  结束日期 日：yyyy-MM-dd 月：yyyy-MM 年：yyyy
 * @param  timeType  日 月 年
 */
const wholeBrandDownLevel3Api = ({ biProjectCode, startTime, endTime, timeType }) => {
    const data = {
        biProjectCode,
        startTime,
        endTime,
        timeType
    }
    return request({
        url: 'portal-server/v1/api/whole/wholeBrandDownLevel3',
        method: 'post',
        data: data
    })
};

/**
 * 销售额卡片下钻-品牌列表 - 合同下拉 暂时不用嘞
 * @param  biProjectCode  bi项目code
 * @param  brandName  品牌名称
 */
const contractNumberDownApi = ({ biProjectCode, brandName }) => {
    const data = {
        biProjectCode,
        brandName,
    }
    return request({
        url: 'portal-server/v1/api/whole/contractNumberDown',
        method: 'post',
        data: data
    })
};

/**
 * 销售额卡片下钻-品牌列表 - 铺位下拉
 * @param  biProjectCode  bi项目code
 * @param  brandName  品牌名称
 */
 const bunkNumberDownApi = ({ biProjectCode, brandName }) => {
    const data = {
        biProjectCode,
        brandName,
    }
    return request({
        url: 'portal-server/v1/api/whole/bunkNumberDown',
        method: 'post',
        data: data
    })
};

/**
 * 销售额卡片下钻-品牌列表
 * @param  biProjectCode  bi项目code
 * @param  brandName  品牌名称
 * @param  contractscode  合同编码
 * @param  startDate  开始日期
 * @param  endDate  结束日期
 * @param  dateFlag  日期类型 日 月 年
 * @param  pageNo
 * @param  pageSize
 */
const brandTypeListApi = ({ biProjectCode, brandName, contractscode, startDate, endDate, dateFlag, pageNo, pageSize }) => {
    const data = {
        biProjectCode,
        brandName,
        contractscode,
        startDate,
        endDate,
        dateFlag,
        pageNo,
        pageSize,
    }
    return request({
        url: 'portal-server/v1/api/whole/brandTypeList',
        method: 'post',
        data: data
    })
};

/**
 * 销售额卡片下钻-品牌列表-导出
 * @param  biProjectCode  bi项目code
 * @param  brandName  品牌名称
 * @param  contractscode  合同编码
 * @param  startDate  开始日期
 * @param  endDate  结束日期
 * @param  dateFlag  日期类型 日 月 年
 */
const brandTypeExportApi = ({ biProjectCode, brandName, contractscode, startDate, endDate, dateFlag }) => {
    const data = {
        biProjectCode,
        brandName,
        contractscode,
        startDate,
        endDate,
        dateFlag,
    }
    return request({
        url: 'portal-server/v1/api/whole/brandTypeExport',
        method: 'post',
        data: data,
        responseType: 'blob'
    })
};

/**
 * 销售额卡片下钻-整场列表-整场品牌列表 - 楼层下拉
 * @param  biProjectCode  bi项目code
 * @param  dataTime  开始日期 日：yyyy-MM-dd 月：yyyy-MM 年：yyyy
 * @param  timeType  日 月 年
 */
const wholeBrandFloorDownApi = ({ biProjectCode }) => {
    const data = {
        biProjectCode,
    }
    return request({
        url: 'portal-server/v1/api/whole/wholeBrandFloorDown',
        method: 'post',
        data: data
    })
};
/**
 * 销售额卡片下钻-整场列表-整场品牌列表 - 一级业态下拉
 */
const wholeBrandOneLevelDownApi = () => {
    return request({
        url: 'portal-server/v1/api/whole/wholeBrandOneLevelDown',
        method: 'post',
    })
};
/**
 * 销售额卡片下钻-整场列表-整场品牌列表 - 二级业态下拉
 */
const wholeBrandTwoLevelDownApi = () => {
    return request({
        url: 'portal-server/v1/api/whole/wholeBrandTwoLevelDown',
        method: 'post',
    })
};
/**
 * 销售额卡片下钻-整场列表-整场品牌列表 - 三级业态下拉
 */
const wholeBrandThreeLevelDownApi = () => {
    return request({
        url: 'portal-server/v1/api/whole/wholeBrandThreeLevelDown',
        method: 'post',
    })
};

/**
 * 合同详情页数据
 * @param  biProjectCode  bi项目code
 * @param  rentCode  bi项目code
 */
const contractdetailApi = ({ biProjectCode, rentCode }) => {
    // const data = {
    //     biProjectCode,
    //     rentCode
    // }
    return request({
        url: `portal-server/v1/api/rent/contractdetail?biProjectCode=${biProjectCode}&rentCode=${rentCode}`,
        method: 'get',
        // data: data
    })
};

/**
 * 销售额
 * @param  biProjectCode  bi项目code
 * @param  startDate  开始日期
 * @param  endDate  结束日期
 * @param  dateTypes  日期类型 list
 * @param  pageNo
 * @param  pageSize
 */
const saleChildApi = ({ biProjectCode, startDate, endDate, dateTypes, pageNo, pageSize }) => {
    const data = {
        biProjectCode,
        startDate,
        endDate,
        dateTypes,
        pageNo,
        pageSize,
    }
    return request({
        url: 'portal-server/v1/api/opBuProjectDetail/saleChild',
        method: 'post',
        data: data
    })
};
/**
 * 品牌销售明细页--模糊搜索品牌名字
 * @param  biProjectCode  bi项目code
 * @param  dataTime  时间类型：日，月，年
 * @param  rentName  模糊搜索的品牌名
 */
const queryRentNameLikeApi = ({ biProjectCode, dataTime, rentName }) => {
    const data = {
        biProjectCode,
        dataTime,
        rentName,
    }
    return request({
        url: 'portal-server/v1/api/sale/queryRentNameLike',
        method: 'post',
        data: data
    })
};
/**
 * 品牌销售明细页--列表数据
 * @param  biProjectCode  bi项目code
 * @param  dataTime  日期
 * @param  rentName  品牌名称
 * @param  pageNo
 * @param  pageSize
 */
const queryListByRentNameApi = ({ biProjectCode, dataTime, rentName, pageNo, pageSize }) => {
    const data = {
        biProjectCode,
        dataTime,
        rentName,
        pageNo,
        pageSize,
    }
    return request({
        url: 'portal-server/v1/api/sale/queryListByRentName',
        method: 'post',
        data: data
    })
};
/**
 * 客流量
 * @param  biProjectCode  bi项目code
 * @param  startDate  开始日期
 * @param  endDate  结束日期
 * @param  dateTypes  日期类型 list
 * @param  pageNo
 * @param  pageSize
 */
const flowChildApi = ({ biProjectCode, startDate, endDate, dateTypes, pageNo, pageSize }) => {
    const data = {
        biProjectCode,
        startDate,
        endDate,
        dateTypes,
        pageNo,
        pageSize,
    }
    return request({
        url: 'portal-server/v1/api/opBuProjectDetail/flowChild',
        method: 'post',
        data: data
    })
};

/**
 * 出租情况-业态下拉
 * @param  biProjectCode  bi项目code
 */
const formatListApi = ({ biProjectCode }) => {
    // const data = {
    //     biProjectCode
    // }
    return request({
        url: `portal-server/v1/api/rent/formatList?biProjectCode=${biProjectCode}`,
        method: 'get',
        // data: data
    })
};
/**
 * 出租情况-楼层下拉
 * @param  biProjectCode  bi项目code
 * @param  buildname  楼栋数组
 */
const buildingListApi = ({ biProjectCode, buildname }) => {
    const data = {
        biProjectCode,
        buildname
    }
    return request({
        url: 'portal-server/v1/api/rent/buildingList',
        method: 'post',
        data: data
    })
};
/**
 * 出租情况-合同状态下拉
 * @param  biProjectCode  bi项目code
 */
const contractListApi = ({ biProjectCode }) => {
    // const data = {
    //     biProjectCode
    // }
    return request({
        url: `portal-server/v1/api/rent/contractList?biProjectCode=${biProjectCode}`,
        method: 'get',
        // data: data
    })
};
/**
 * 出租情况-详情页列表数据
 * @param  biProjectCode  bi项目code
 * @param  shopType  业态数组
 * @param  floorName  楼层数组
 * @param  contractStatus  合同状态数组
 * @param  pageNo  当前页
 * @param  pageSize  每页条数
 */
const rentOutDetailApi = ({ biProjectCode, shopType, floorName, contractStatus, pageNo, pageSize }) => {
    const data = {
        biProjectCode,
        shopType,
        floorName,
        contractStatus,
        pageNo,
        pageSize
    }
    return request({
        url: 'portal-server/v1/api/rent/rentOutDetail',
        method: 'post',
        data: data
    })
};

/**
 * 新签情况下级详情
 * @param  biProjectCode  bi项目code
 * @param  pageNo
 * @param  pageSize
 * @param  timeType  日 月 年
 * @param  startDateTime  开始日期
 * @param  endDateTime  结束日期
 */
const queryContractDetail = ({ biProjectCode, pageNo, pageSize, timeType, startDateTime, endDateTime }) => {
    const data = {
        biProjectCode,
        pageNo,
        pageSize,
        timeType,
        startDateTime,
        endDateTime
    }
    return request({
        url: 'portal-server/v1/api/contract/queryContractDetail',
        method: 'post',
        data: data
    })
};

/**
 * 新签情况-下钻楼层下拉
 * @param  biProjectCode  bi项目code
 */
const signatureBuildingListApi = (biProjectCode) => {
    return request({
        url: 'portal-server/v1/api/new/signatureBuildingList?biProjectCode=' + biProjectCode,
        method: 'get'
    })
};
/**
 * 新签情况-下钻业态下拉
 * @param  biProjectCode  bi项目code
 */
const signatureFormatListApi = (biProjectCode) => {
    return request({
        url: 'portal-server/v1/api/new/signatureFormatList?biProjectCode=' + biProjectCode,
        method: 'get'
    })
};
/**
 * 新签情况-新签状态下拉   原型叫类型
 * @param  biProjectCode  bi项目code
 */
const signatureStatusListApi = (biProjectCode) => {
    return request({
        url: 'portal-server/v1/api/new/signatureStatusList?biProjectCode=' + biProjectCode,
        method: 'get'
    })
};
/**
 * 新签情况下级详情
 * @param  biProjectCode  bi项目code
 * @param  shopType  业态 list
 * @param  newSignStatus  业新签状态 list
 * @param  floorName  楼层 list
 * @param  pageNo
 * @param  pageSize
 * @param  startDate  开始日期
 * @param  endDate  结束日期
 */
const signatureDetailApi = ({ biProjectCode, floorName, shopType, newSignStatus, pageNo, pageSize, startDate, endDate }) => {
    const data = {
        biProjectCode,
        shopType,
        floorName,
        newSignStatus,
        pageNo,
        pageSize,
        startDate,
        endDate
    }
    return request({
        url: 'portal-server/v1/api/new/signatureDetail',
        method: 'post',
        data: data
    })
};

/**
 * 欠款分析-详情页-项目下拉选
 * @param  projectCode  项目编码
 * @param  projectName  项目名称
 * @param  type  查询类型-0权责1收付
 */
const queryProjectApi = ({ projectCode, projectName, type }) => {
    const data = {
        projectCode,
        projectName,
        type,
    }
    return request({
        url: 'portal-server/v1/api/cockpitArrears/queryProject',
        method: 'post',
        data: data
    })
};

/**
 * 欠款分析-详情页-品牌下拉选
 * @param  projectCode  项目名称
 * @param  brandName  品牌编码
 * @param  type  查询类型-0权责1收付
 */
const queryBrandApi = ({ projectCode, brandName, type }) => {
    const data = {
        projectCode,
        brandName,
        type,
    }
    return request({
        url: 'portal-server/v1/api/cockpitArrears/queryBrand',
        method: 'post',
        data: data
    })
};

/**
 * 欠款分析-详情页-商户名称下拉选
 * @param  projectCode  项目名称
 * @param  customerName  商户名称
 * @param  type  查询类型-0权责1收付
 */
const queryCustomerNameApi = ({ projectCode, customerName, type }) => {
    const data = {
        projectCode,
        customerName,
        type,
    }
    return request({
        url: 'portal-server/v1/api/cockpitArrears/queryCustomerName',
        method: 'post',
        data: data
    })
};

/**
 * 欠款分析-详情页-资产类型下拉选
 */
const queryBizModeApi = (data) => {
    return request({
        url: 'portal-server/v1/api/cockpitArrears/queryBizMode',
        method: 'post',
        data: data
    })
};

/**
 * 欠款分析-详情页-合同编号下拉选
 * @param  projectCode  项目名称
 * @param  contractCode  商户编码
 * @param  type  查询类型-0权责1收付
 */
const queryContractApi = ({ projectCode, contractCode, type }) => {
    const data = {
        projectCode,
        contractCode,
        type,
    }
    return request({
        url: 'portal-server/v1/api/cockpitArrears/queryContract',
        method: 'post',
        data: data
    })
};

/**
 * 欠款分析-详情页-三合一下拉选（费项科目、是否诉讼、是否关联方）
 * @param  type  查询类型-0权责1收付
 */
 const queryAllApi = ({ type }) => {
    const data = {
        type,
    }
    return request({
        url: 'portal-server/v1/api/cockpitArrears/queryAll',
        method: 'post',
        data: data
    })
};

// 欠款分析 | 收缴率 ： 费项
const getChargeListApi = (projectCode) => {
    return request({
        url: `portal-server/v1/api/cockpitArrears/queryWtChargeTypeList?projectCode=${projectCode}`,
        method: 'get',
    })
};

// 欠款分析 | 收缴率 ： 费项名称 by 费项类型
const getChargeNameByTypeListApi = data => {
    return request({
        url: `portal-server/v1/api/arrearsStatistics/feeItemNewestList`,
        method: 'post',
        data: data
    })
};

/**
//  * 欠款分析-详情页-费项科目下拉选
//  * @param  projectCode  项目名称
//  * @param  chargetypeGroupId
//  * @param  chargetypeId
//  * @param  type  查询类型-0权责1收付
//  */
// const queryChargetypeApi = ({ projectCode, chargetypeGroupId, chargetypeId, type }) => {
//     const data = {
//         projectCode,
//         chargetypeGroupId,
//         chargetypeId,
//         type,
//     }
//     return request({
//         url: 'portal-server/v1/api/cockpitArrears/queryChargetype',
//         method: 'post',
//         data: data
//     })
// };

// /**
//  * 欠款分析-详情页-是否诉讼 下拉选
//  * @param  islitigation  是否诉讼编码
//  * @param  type  查询类型-0权责1收付
//  */
// const queryIslitigationApi = ({ islitigation, type }) => {
//     const data = {
//         islitigation,
//         type,
//     }
//     return request({
//         url: 'portal-server/v1/api/cockpitArrears/queryIslitigation',
//         method: 'post',
//         data: data
//     })
// };

// /**
//  * 欠款分析-详情页-是否关联方查询 下拉选
//  * @param  isrelationcustomer  是否关联方编码
//  * @param  type  查询类型-0权责1收付
//  */
// const queryIsrelationcustomerApi = ({ isrelationcustomer, type }) => {
//     const data = {
//         isrelationcustomer,
//         type,
//     }
//     return request({
//         url: 'portal-server/v1/api/cockpitArrears/queryIsrelationcustomer',
//         method: 'post',
//         data: data
//     })
// };
const queryConractListApi = (data) => {
    return request({
        url: 'portal-server/v1/api/cockpitArrears/queryConractList',
        method: 'post',
        data: data
    })
};

// 欠款分析-详情页-合同统计列表查询 -- 导出
const debtConractExportApi = (data) => {
	return request({
		url: `/portal-server/v1/api/cockpitArrears/contractExport`,
		method: 'post',
		data: data,
        responseType: 'blob'
	})
};

// 欠款分析-详情页-合同统计列表-合同状态下拉数据源
const debtConractStatusListApi = (data) => {
	return request({
		url: `/portal-server/v1/api/cockpitArrears/queryContractStatus`,
		method: 'post',
		data: data,
	})
};

// 欠款分析-详情页-合同统计列表合计查询
const querySumConractListDebtamtApi = (data) => {
    return request({
        url: 'portal-server/v1/api/cockpitArrears/querySumConractListDebtamt',
        method: 'post',
        data
    })
};

//欠款追缴 - 账单
const queryBillListApi = (data) => {
    return request({
        url: 'portal-server/v1/api/cockpitArrears/queryBillList',
        method: 'post',
        data: data
    })
};

//欠款追缴 - 账单 - 第一行统计
const querySumBillDebtamtApi = (data) => {
    return request({
        url: 'portal-server/v1/api/cockpitArrears/querySumBillDebtamt',
        method: 'post',
        data
    })
};

//欠款追缴 - 账单 - 导出
const querySumBillDebtamtExportApi = (data) => {
    return request({
        url: `/portal-server/v1/api/cockpitArrears/billExport`,
        method: 'post',
        data,
        responseType: 'blob'
    })
};

/**
 * [保证金押金]-明细页--楼栋下拉
 * @param  biProjectCode  bi项目code
 */
const manageGuaranteeBuildingDownApi = ({ biProjectCode }) => {
    // const data = {
    //     biProjectCode
    // }
    return request({
        url: `portal-server/v1/api/guarantee/manageGuaranteeBuildingDown?biProjectCode=${biProjectCode}`,
        method: 'get',
        // data: data
    })
};
/**
 * [保证金押金]-明细页--楼层下拉 （下拉名称 商业：楼层，产办：楼栋）
 * @param  biProjectCode  bi项目code
 * @param  buildingname  楼栋 list（商业不传）
 */
const manageGuaranteeFloorDownApi = ({ biProjectCode, buildingname }) => {
    const data = {
        biProjectCode,
        buildingname,
    }
    return request({
        url: 'portal-server/v1/api/guarantee/manageGuaranteeFloorDown',
        method: 'post',
        data: data
    })
};
/**
 * [保证金押金]-明细页--费项下拉
 * @param  biProjectCode  bi项目code
 * @param  chargeclass  保证金/押金
 */
const manageGuaranteeChargesDownApi = ({ biProjectCode, chargeclass }) => {
    // const data = {
    //     biProjectCode,
    //     chargeclass
    // }
    return request({
        url: `portal-server/v1/api/guarantee/manageGuaranteeChargesDown?biProjectCode=${biProjectCode}&chargeclass=${chargeclass}`,
        method: 'get',
        // data: data
    })
};
/**
 * [保证金押金]-明细页
 * @param  biProjectCode  bi项目code
 * @param  chargeclass  保证金/押金
 * @param  buildingname  楼栋 list
 * @param  floorname  楼层 list
 * @param  arrears  欠款 list
 * @param  islitigation  已诉讼 list
 * @param  isrelationcustomer  关联方 list
 * @param  chargetypename  费项 list
 * @param  pageNo
 * @param  pageSize
 */
const manageGuaranteeDetailApi = ({ biProjectCode, chargeclass, buildingname, floorname, arrears, islitigation, isrelationcustomer, chargetypename, pageNo, pageSize }) => {
    const data = {
        biProjectCode,
        chargeclass,
        buildingname,
        floorname,
        arrears,
        islitigation,
        isrelationcustomer,
        chargetypename,
        pageNo,
        pageSize
    }
    return request({
        url: 'portal-server/v1/api/guarantee/manageGuaranteeDetail',
        method: 'post',
        data: data
    })
};
/**
 * 【改造事项明细】--筛选数据
 * @param  biProjectCode  bi项目code
 */
const queryCipNodesStatuslApi = ({ biProjectCode }) => {
    // const data = {
    //     biProjectCode
    // }
    return request({
        url: `portal-server/v1/api/cip/queryCipNodesStatus?biProjectCode=${biProjectCode}`,
        method: 'get',
        // data: data
    })
};
/**
 * 【改造事项明细】--表格数据
 * @param  biProjectCode  bi项目code
 * @param  nodeStatus 状态
 */
const queryCipNodeFormApi = ({ biProjectCode, nodeStatus }) => {
    const data = {
        biProjectCode,
        nodeStatus
    }
    return request({
        url: 'portal-server/v1/api/cip/queryCipNodeForm',
        method: 'post',
        data: data
    })
};
/**
 * 【改造节点明细】--表格数据
 * @param  biProjectCode  bi项目code
 * @param  nodeStatus 状态
 * @param  periodCode 事项code
 */
const queryCipNodeDetailApi = ({ biProjectCode, nodeStatus, periodCode }) => {
    const data = {
        biProjectCode,
        nodeStatus,
        periodCode
    }
    return request({
        url: 'portal-server/v1/api/cip/queryCipNodeDetail',
        method: 'post',
        data: data
    })
};
/**
 * 【改造成本明细】--表格数据
 * @param  biProjectCode  bi项目code
 * @param  periodCode  事项code
 */
const queryCipCostDetailApi = ({ biProjectCode, periodCode }) => {
    // const data = {
    //     biProjectCode,
    //     periodCode
    // }
    return request({
        url: `portal-server/v1/api/cip/queryCipCostDetail?biProjectCode=${biProjectCode}&periodCode=${periodCode}`,
        method: 'get',
        // data: data
    })
};
/**
 * 【预算达成明细】整体数据
 * @param  biProjectCode  bi项目code
 * @param  dataTime  数据日期（日期类型：yyyy-MM）
 * @param  dataType  月度，累计，全年
 * @param  orderBy  排序
 * @param  subjectName  指标名称，默认查全部不用传，查指定的需要传
 */
const budgetDetailApi = ({ biProjectCode, dataTime, dataType, orderBy, subjectName }) => {
    const data = {
        biProjectCode,
        dataTime,
        dataType,
        orderBy,
        subjectName
    }
    return request({
        url: 'portal-server/v1/api/budget/budgetDetail',
        method: 'post',
        data: data
    })
};
/**
 * 【预算达成明细】-- 【非租金收入，物业支出】判断是否显示
 * @param  biProjectCode  bi项目code
 */
const noIsShowApi = ({ biProjectCode }) => {
    // const data = {
    //     biProjectCode,
    // }
    return request({
        url: `portal-server/v1/api/budget/noIsShow?biProjectCode=${biProjectCode}`,
        method: 'get',
        // data: data
    })
};
/**
 * 【预算达成明细】-- 【非租金收入平衡率】card数据
 * @param  biProjectCode  bi项目code
 * @param  dataTime  数据日期（日期类型：yyyy-MM-dd）
 */
const noRentIncomeRateApi = ({ biProjectCode, dataTime }) => {
    const data = {
        biProjectCode,
        dataTime
    }
    return request({
        url: 'portal-server/v1/api/budget/noRentIncomeRate',
        method: 'post',
        data: data
    })
};
/**
 * 【预算达成明细】-- 【非租金收入平衡率】card--下钻页--数据
 * @param  biProjectCode  bi项目code
 * @param  yearmonth  数据日期（日期类型：yyyy-MM-dd）
 */
const noRentIncomeRateDetailApi = ({ biProjectCode, yearmonth }) => {
    const data = {
        biProjectCode,
        yearmonth
    }
    return request({
        url: 'portal-server/v1/api/budget/noRentIncomeRateDetail',
        method: 'post',
        data: data
    })
};
/**
 * 【预算达成明细】-- 【物业支出比例】card数据
 * @param  biProjectCode  bi项目code
 * @param  type  人力
 * @param  dataTime  数据日期（日期类型：yyyy-MM-dd）
 */
const realDisburseRateApi = ({ biProjectCode, dataTime, type }) => {
    const data = {
        biProjectCode,
        type,
        dataTime,
    }
    return request({
        url: 'portal-server/v1/api/budget/realDisburseRate',
        method: 'post',
        data: data
    })
};
/**
 * 【预算达成明细】-- 【物业支出比例】card--下钻页--数据
 * @param  biProjectCode  bi项目code
 * @param  manpower  含人力 或者 不含人力
 * @param  yearmonth
 */
const realDisburseRateDetailApi = ({ biProjectCode, manpower, yearmonth }) => {
    const data = {
        biProjectCode,
        manpower,
        yearmonth
    }
    return request({
        url: 'portal-server/v1/api/budget/realDisburseRateDetail',
        method: 'post',
        data: data
    })
};
/**
 * 【投资联营】详情页
 * @param  biProjectCode  bi项目code
 * @param  muCode  门店code
 * @param  dateTypes  筛选集合
 * @param  startDate  开始时间
 * @param  endDate  结束时间
 * @param  pageNo  起始页
 * @param  pageSize  每页条数
 */
const investPoolSaleDetailApi = ({ biProjectCode, muCode, dateTypes, startDate, endDate, pageNo, pageSize }) => {
    const data = {
        biProjectCode,
        muCode,
        dateTypes,
        startDate,
        endDate,
        pageNo,
        pageSize,
    }
    return request({
        url: 'portal-server/v1/api/investPool/investPoolSaleDetail',
        method: 'post',
        data: data
    })
};

/**
 * 【两书对标】详情 -- 顶部tab数据 + 以及是否显示
 * @param  biProjectCode  bi项目code
 */
const queryTwoCompareDetailFormatApi = ({ biProjectCode }) => {
    // const data = {
    //     biProjectCode,
    // }
    return request({
        url: `portal-server/v1/api/twoBooks/queryTwoCompareDetailFormat?biProjectCode=${biProjectCode}`,
        method: 'get',
        // data: data
    })
};

/**
 * 【两书对标】详情 -- 基本信息
 * @param  biProjectCode  bi项目code
 * @param  format  业态
 */
const queryTwoProjectDetailApi = ({ biProjectCode, format }) => {
    // const data = {
    //     biProjectCode,
    //     format
    // }
    return request({
        url: `portal-server/v1/api/twoBooks/queryTwoProjectDetail?biProjectCode=${biProjectCode}&format=${format}`,
        method: 'get',
        // data: data
    })
};

/**
 * 【两书对标】详情 -- 【柱线合一】的数据图
 * @param  biProjectCode  bi项目code
 * @param  format  业态
 */
const queryListByFormatApi = ({ biProjectCode, format }) => {
    // const data = {
    //     biProjectCode,
    //     format
    // }
    return request({
        url: `portal-server/v1/api/twoBooks/queryListByFormat?biProjectCode=${biProjectCode}&format=${format}`,
        method: 'get',
        // data: data
    })
};

/**
 * 【两书对标】详情 --【饼状图】的数据图
 * @param  biProjectCode  bi项目code
 * @param  format  业态
 */
const queryAreaListByFormatApi = ({ biProjectCode, format }) => {
    // const data = {
    //     biProjectCode,
    //     format
    // }
    return request({
        url: `portal-server/v1/api/twoBooks/queryAreaListByFormat?biProjectCode=${biProjectCode}&format=${format}`,
        method: 'get',
        // data: data
    })
};

/**
 * 【两书对标】详情 --【柱线合一】的数据图 -- 下钻页
 * @param  biProjectCode  bi项目code
 * @param  format  业态
 * @param  level  层级 数字 1，2
 * @param  dateYear  年份
 */
const queryEvenMoreApi = ({ biProjectCode, format, level, dateYear }) => {
    const data = {
        biProjectCode,
        format,
        level,
        dateYear,
    }
    return request({
        url: 'portal-server/v1/api/twoBooks/queryEvenMore',
        method: 'post',
        data: data
    })
};

/**
 * 【两书对标】详情 --【建筑面积】 -- 下钻页
 * @param  biProjectCode  bi项目code
 * @param  format  业态
 * @param  pageNo  起始页
 * @param  pageSize  每页条数
 */
const queryAreaEvenMoreApi = ({ biProjectCode, format, pageNo, pageSize }) => {
    const data = {
        biProjectCode,
        format,
        pageNo,
        pageSize,
    }
    return request({
        url: 'portal-server/v1/api/twoBooks/queryAreaEvenMore',
        method: 'post',
        data: data
    })
};

/**
 * 【两书对标】详情 --【投资指标】 -- 下钻页
 * @param  biProjectCode  bi项目code
 * @param  format  Tab 所在的业态
 * @param  level  层级 1级传1，二级 传2
 * @param  type  投资单方，投资总额 数组
 * @param  dataYear  测试2023
 */
const queryInvestEvenMoreApi = ({ biProjectCode, format, level, type, dataYear }) => {
    const data = {
        biProjectCode,
        format,
        level,
        type,
        dataYear
    }
    return request({
        url: 'portal-server/v1/api/twoBooks/queryInvestEvenMore',
        method: 'post',
        data: data
    })
};

/**
 * 【两书对标】详情 --【估值指标】 -- 下钻页
 * @param  biProjectCode  bi项目code
 * @param  format  Tab 所在的业态
 * @param  type  估值总额; 估值单方
 * @param  pageNo  起始页
 * @param  pageSize  每页条数
 */
const queryValueEvenMoreApi = ({ biProjectCode, format, type, pageNo, pageSize }) => {
    const data = {
        biProjectCode,
        format,
        type,
        pageNo,
        pageSize,
    }
    return request({
        url: 'portal-server/v1/api/twoBooks/queryValueEvenMore',
        method: 'post',
        data: data
    })
};

/**
 * 【预算对标】卡片 - 下钻页 表格
 * @param  biProjectCode  bi项目code
 * @param  formatType  商办产：1，酒寓：2
 * @param  yearmonth  	数据日期（日期类型：yyyy-MM）
 */
 const budgetCardInfoApi = ({ biProjectCode, formatType, yearmonth }) => {
    const data = {
        biProjectCode,
        formatType,
        yearmonth,
    }
    return request({
        url: 'portal-server/v1/api/budget/budgetCardInfo',
        method: 'post',
        data: data
    })
};

/**
 * 【预算对标】卡片 - 下钻页 导出
 * @param  biProjectCode  bi项目code
 * @param  formatType  商办产：1，酒寓：2
 * @param  yearmonth  	数据日期（日期类型：yyyy-MM）
 */
 const budgetCardInfoExportApi = ({ biProjectCode, formatType, yearmonth }) => {
    const data = {
        biProjectCode,
        formatType,
        yearmonth,
    }
    return request({
        url: 'portal-server/v1/api/budget/budgetCardInfoExport',
        method: 'post',
        data: data,
        responseType: 'blob'
    })
};

/**
 * 【两算一控】导出
 * @param  biProjectCode  bi项目code
 * @param  yearmonth  	数据日期（日期类型：yyyy-MM）
 */
 const twoCalculateExportApi = (data) => {
    return request({
        url: `/portal-server/v1/api/calculagte/twoCalculateInfoNewCard`,
        method: 'post',
        data,
        responseType: 'blob'
    })
};

/**
 * 【两算一控】列表
 * @param  biProjectCode  bi项目code
 * @param  yearmonth  	数据日期（日期类型：yyyy-MM）
 */
 const queryTwoCalculateDetailListApi = (data) => {
    return request({
        url: `/portal-server/v1/api/calculagte/queryTwoCalculateInfoNew`,
        method: 'post',
        data
    })
};
/**
 * 【两算一控】列表上方卡片
 */
 const queryTwoCalculateDetailCardApi = (data) => {
    return request({
        url: `/portal-server/v1/api/calculagte/queryTwoCalculateInfoCard`,
        method: 'post',
        data
    })
};
//  两算一明细 导出--楼层视图
const twoCalculateExportFloorViewApi = (data) => {
    return request({
        url: `/portal-server/v1/api/calculagte/twoCalculateFloorCard`,
        method: 'post',
        data,
        responseType: 'blob'
    })
};
/**
 * 【两算一控】列表--楼层视图
 * @param  biProjectCode  bi项目code
 * @param  yearmonth  	数据日期（日期类型：yyyy-MM）
 */
 const queryTwoCalculateDetailListFloorViewApi = (data) => {
    return request({
        url: `/portal-server/v1/api/calculagte/queryTwoCalculateFloorInfo`,
        method: 'post',
        data
    })
};
/**
 * 【两算一控】列表上方卡片-- 楼层视图
 */
 const queryTwoCalculateDetailCardFloorViewApi = (data) => {
    return request({
        url: `/portal-server/v1/api/calculagte/queryTwoCalculateFloorInfoCard`,
        method: 'post',
        data
    })
};
//  两算一明细 导出--管理视图
const twoCalculateExportManageViewApi = (data) => {
    return request({
        url: `/portal-server/v1/api/calculagte/twoCalculateDistrictExport`,
        method: 'post',
        data,
        responseType: 'blob'
    })
};
/**
 * 【两算一控】列表--管理视图
 * @param  biProjectCode  bi项目code
 * @param  yearmonth  	数据日期（日期类型：yyyy-MM）
 */
 const queryTwoCalculateDetailListManageViewApi = (data) => {
    return request({
        url: `/portal-server/v1/api/calculagte/queryTwoCalculateDistrictInfo`,
        method: 'post',
        data
    })
};
/**
 * 【两算一控】列表上方卡片-- 人员视图
 */
 const queryTwoCalculateDetailCardPeopleViewApi = (data) => {
    return request({
        url: `/portal-server/v1/api/calculagte/queryTwoCalculatePeopleInfoCard`,
        method: 'post',
        data
    })
};
//  两算一明细 导出--人员视图
const twoCalculateExportPeopleViewApi = (data) => {
    return request({
        url: `/portal-server/v1/api/calculagte/twoCalculatePeopleExport`,
        method: 'post',
        data,
        responseType: 'blob'
    })
};
/**
 * 【两算一控】列表--人员视图
 * @param  biProjectCode  bi项目code
 * @param  yearmonth  	数据日期（日期类型：yyyy-MM）
 */
 const queryTwoCalculateDetailListPeopleViewApi = (data) => {
    return request({
        url: `/portal-server/v1/api/calculagte/queryTwoCalculatePeopleInfo`,
        method: 'post',
        data
    })
};
/**
 * 【两算一控】列表上方卡片-- 管理视图
 */
 const queryTwoCalculateDetailCardManageViewApi = (data) => {
    return request({
        url: `/portal-server/v1/api/calculagte/queryTwoCalculateDistrictInfoCard`,
        method: 'post',
        data
    })
};
// 获取有视图按钮的项目列表
 const getHaveViewProjectListApi = () => {
    return request({
        url: `/budget/managePublic/viewProjectList`,
        method: 'get'
    })
};


// 【能源模块】下钻页 -- 能源详情 -- 列表

const energyModuleInfoCardListApi = (data) => {
	return request({
		url: `/portal-server/v1/api/report/energyModuleInfoCardList`,
		method: 'post',
		data: data,
	})
};
// 【能源模块】下钻页 -- 能源详情 -- 图表--折线图
const energyModuleInfoLineChartApi = (data) => {
	return request({
		url: `/portal-server/v1/api/report/energyModuleInfoChartListLine`,
		method: 'post',
		data: data,
	})
};
// 【能源模块】下钻页 -- 能源详情 -- 图表--饼图
const energyModuleInfoPieChartApi = (data) => {
	return request({
		url: `/portal-server/v1/api/report/energyModuleInfoChartListPie`,
		method: 'post',
		data: data,
	})
};
// 【能源模块】下钻页 -- 能源详情 -- 表格 -- 导出
const energyModuleInfoCardExportListApi = (data) => {
	return request({
		url: `/portal-server/v1/api/report/energyModuleInfoCardExportList`,
		method: 'post',
		data: data,
        responseType: 'blob'
	})
};
// 【能源模块】下钻页 -- 能源详情 -- 图形 -- 导出
const energyModuleGraphExportApi = (data) => {
	return request({
		url: `/portal-server/v1/api/report/energyModuleGraphExport`,
		method: 'post',
		data: data,
        responseType: 'blob'
	})
};
// 【经营商业 - 预算对标】说明弹窗 -- 保存 | 提交
const bedgetcExplainSaveApi = (data) => {
	return request({
		url: `/portal-server/v1/api/budget/saveBudgetBenchmarking`,
		method: 'post',
		data: data
	})
};
// 【经营商业 - 预算对标】说明弹窗 -- 详情
const bedgetcExplainInfoApi = ({biProjectCode, yearmonth}) => {
	return request({
		url: `/portal-server/v1/api/budget/getBudgetBenchmarkingInfo?biProjectCode=${biProjectCode}&yearmonth=${yearmonth}`,
		method: 'get'
	})
};
// 【经营商业 - 预算对标】说明弹窗 -- 详情 审批通过的
const bedgetcExplainInfoNewApi = ({biProjectCode, yearmonth}) => {
	return request({
		url: `/portal-server/v1/api/budget/getBusinessSummaryInfo?biProjectCode=${biProjectCode}&yearmonth=${yearmonth}`,
		method: 'get'
	})
};
// 【经营商业 - 预算对标】说明弹窗 -- 审批信息
const bedgetcExplainApproveApi = (bpmTaskKey) => {
	return request({
		url: `/portal-server/v1/api/approval/approvalList?bpmTaskKey=${bpmTaskKey}`,
		method: 'get'
	})
};
// 【整场测算 - 明细】下拉
const queryPcBuildingDownApi = (biProjectCode) => {
	return request({
		url: `/portal-server/v1/api/calculate/queryPcBuildingDown?biProjectCode=${biProjectCode}`,
		method: 'get',
	});
};
// 【整场测算 - 明细】品牌下拉
const queryPcBrandDownDownApi = (params) => {
	return request({
		url: `/portal-server/v1/api/calculate/queryPcBrandDown`,
		method: 'get',
        params
	});
};
// 【整场测算 - 明细】资产下拉
const queryPcAssetDownApi = (params) => {
	return request({
		url: `/portal-server/v1/api/calculate/queryPcAssetDown`,
		method: 'get',
        params
	});
};
// 【整场测算 - 明细】合同编码下拉
const queryPcContractCodingDownDownApi = (params) => {
	return request({
		url: `/portal-server/v1/api/calculate/queryPcContractCodingDown`,
		method: 'get',
        params
	});
};
// 【整场测算 - 明细】列表
const queryPcBuildingInfoApi = (data) => {
	return request({
		url: `/portal-server/v1/api/calculate/queryPcBuildingInfo`,
		method: 'post',
        data
	});
};
// 【整场测算 - 明细】导出
const WhleCalculateExportApi = (data) => {
	return request({
		url: `/portal-server/v1/api/calculate/calculateExport`,
		method: 'post',
        data,
        responseType: 'blob'
	});
};
// 【经营-商业-巡检监控-巡检路线详情
const inspectionRouteDetailListApi = (data) => {
	return request({
		url: `/property-portal/v1/api/inspectionMonitoring/queryInspectionRouteDetailList`,
		method: 'post',
        data,
	});
};
// 经营-商业-巡检监控-点位明细
const inspectionRouteDetailPointListApi = (data) => {
	return request({
		url: `/property-portal/v1/api/inspectionMonitoring/queryInspectionRoutePointDetailList`,
		method: 'post',
        data,
	});
};
// 经营-商业-巡检监控-点位明细-导出
const inspectionRouteExportApi = (data) => {
	return request({
		url: `/property-portal/v1/api/inspectionMonitoring/exportInspectionRoutePointDetail`,
		method: 'post',
        data,
        responseType: 'blob'
	});
};
// 【经营-商业-巡检监控-点位明细-角色名称数据源
const planRoleDropApi = data => {
	return request({
		url: `/property-portal/v1/api/planInspection/queryRoleKeyList`,
		method: 'post',
		data
	});
};
// 经营-商业-巡检监控-点位明细-查看图片
const inspectionRouteDetailPointPicApi = (data) => {
	return request({
		url: `/property-portal/v1/api/inspectionMonitoring/queryFormValueDataRespList`,
		method: 'post',
        data,
	});
};
// 经营-商业-品牌监控-明细页
const brandMonitoringListApi = (data) => {
	return request({
		url: `/portal-server/v1/api/brandMonitoring/list`,
		method: 'post',
        data,
	});
};

// 经营-商业-品牌监控-明细页-导出
const brandMonitoringExportExcelApi = (data) => {
    return request({
		url: `/portal-server/v1/api/brandMonitoring/exportExcel`,
        method: 'post',
        data,
        responseType: 'blob'
    })
};
// 经营-商业-品牌监控-明细页-获取标签
const getLabelApi = (contractCode) => {
	return request({
		url: `/portal-server/v1/api/brandMonitoring/getLabel?contractCode=${contractCode}`,
		method: 'get'
	})
};
// 经营-商业-品牌监控-明细页-标签编辑
const brandMonitoringeditLabelApi = (data) => {
    return request({
		url: `/portal-server/v1/api/brandMonitoring/editLabel`,
        method: 'post',
        data,
    })
};
// 经营-商业-品牌监控-明细页-品牌下拉筛选
const brandControlApi = (data) => {
    return request({
		url: `/portal-server/v1/api/brandMonitoring/brandControl`,
        method: 'post',
        data,
    })
};

// 经营-商办产-车场白名单-明细页
export const carParkDetailApi = (data) => {
    return request({
		url: `/portal-server/v1/api/carPark/detail`,
        method: 'post',
        data,
    })
};
// 经营-商办产-车场白名单-明细页 -- 原因类型 下拉选
export const carParkCauseTypeDropDownApi = () => {
    return request({
		url: `/portal-server/v1/api/carPark/causeTypeDropDown`,
        method: 'get',
    })
};

// 经营-商办产-车场白名单-明细页-导出
export const carParkExportApi = (data) => {
    return request({
		url: `/portal-server/v1/api/carPark/export`,
        method: 'post',
        data,
        responseType: 'blob'
    })
};


// 经营-商办产-车场白名单-明细页-审批明细
export const carParkApproveInfoApi = (data) => {
    return request({
		url: `/portal-server/v1/api/carPark/approveInfo`,
        method: 'post',
        data,
    })
};

// 经营-商办产-停车场异常抬杆-车牌明细页
export const abnormalPlateNumDetailApi = (data) => {
    return request({
		url: `/portal-server/v1/api/abnormal/plateNumDetail`,
        method: 'post',
        data,
    })
};


// 经营-商办产-停车场异常抬杆-车牌明细-导出
export const abnormalPlateNumDetailExportApi = (data) => {
    return request({
		url: `/portal-server/v1/api/abnormal/plateNumDetailExport`,
        method: 'post',
        data,
        responseType: 'blob'
    })
};

// 经营-商办产-停车场异常抬杆-车牌明细-异常明细
export const abnormalParkingDetailApi = (data) => {
    return request({
		url: `/portal-server/v1/api/abnormal/abnormalDetail`,
        method: 'post',
        data,
    })
};

// 经营-商办产-停车场异常抬杆-车牌明细-异常明细-导出
export const abnormalParkingExportApi = (data) => {
    return request({
		url: `/portal-server/v1/api/abnormal/abnormalDetailExport`,
        method: 'post',
        data,
        responseType: 'blob'
    })
};

// 经营-商办产-停车场异常抬杆-月度明细页
export const abnormalMonthlyDetailApi = (data) => {
    return request({
		url: `/portal-server/v1/api/abnormal/monthlyDetail`,
        method: 'post',
        data,
    })
};

// 经营-商办产-停车场异常抬杆-月度明细-导出
export const abnormalMonthlyDetailExportApi = (data) => {
    return request({
		url: `/portal-server/v1/api/abnormal/monthlyDetailExport`,
        method: 'post',
        data,
        responseType: 'blob'
    })
};

/**
 * 【设备维保】卡片 - 详情（设备）
 */
const equipmentMaintenListApi = (data) => {
	return request({
		url: `/property-portal/v1/api/deviceMaintenance/queryDeviceMaintenanceList`,
		method: 'post',
		data: data
	})
};

/**
 * 【设备维保】卡片 - 详情（设备）- 类型
 */
const equipmentTypeApi = (data) => {
	return request({
		url: `/property-portal/v1/api/deviceMaintenance/queryDeviceMaintenanceFiltrateList`,
		method: 'post',
		data: data
	})
};

// 费用分析酒寓列表
const costAnalysisHotelListApi = (data) => {
	return request({
		url: `/budget/hotelCost/costAnalysis`,
		method: 'post',
		data: data
	})
};
// 费用分析酒寓列表明细
const costAnalysisHotelDetailApi = (data) => {
	return request({
		url: `/budget/hotelCost/costDetails?projectCode=${data.projectCode}&costTime=${data.costTime}&courseNumber=${data.courseNumber}`,
		method: 'get',
	})
};
// 费用分析酒寓列表导出
const exportCostAnalysisHotelListApi = (data) => {
	return request({
		url: `/budget/hotelCost/hotelCostExport?projectCode=${data.projectCode}&costTime=${data.costTime}`,
		method: 'get',
        responseType: 'blob'
	})
};
// 费用分析商办产列表
const costAnalysisBusinessListApi = (data) => {
	return request({
		url: `/portal-server/v1/api/calculagte/queryCostControlNewList?biProjectCode=${data.biProjectCode}&bizType=${data.bizType}&month=${data.month}&year=${data.year}`,
		method: 'get',
	})
};
// 费用分析商办产列表明细
const costAnalysisBusinessDetailApi = (data) => {
	return request({
		url: `/portal-server/v1/api/calculagte/queryCostControlDetail`,
		method: 'post',
        data
	})
};
// 费用分析商办产列表导出
const exportCostAnalysisBusinessListApi = (data) => {
	return request({
		url: `/portal-server/v1/api/calculagte/CostControlNewExport?biProjectCode=${data.biProjectCode}&bizType=${data.bizType}&month=${data.month}&year=${data.year}`,
		method: 'post',
        responseType: 'blob'
	})
};

// 获取费用明细列表
const getCostAnalysisListApi = (data) => {
    return request({
        url: `/budget/control/subjectDetailList`,
        method: "post",
        data
    });
};

// 经营-商业-收缴率-欠款明细表（合同级）
const collectionRateListApi = (data) => {
	return request({
		url: `/portal-server/v1/api/arrearsStatistics/arrearsStatisticsContractsList`,
		method: 'post',
        data,
	});
};

// 经营-商业-收缴率-欠款明细表-账单明细
const collectionRateBillListApi = (data) => {
	return request({
		url: `/portal-server/v1/api/arrearsStatistics/arrearsStatisticsBillList`,
		method: 'post',
        data,
	});
};


export default {
    wholeSceneListApi,
    wholeSceneExportApi,
    wholeBrandListApi,//整场品牌列表
    wholeBrandDownApi,//整场品牌列表--品牌下拉选
    wholeBrandDownLevel3Api,
    wholeBrandFloorDownApi,//整场品牌列表--楼层下拉选
    wholeBrandOneLevelDownApi,//整场品牌列表--一级业态下拉选
    wholeBrandTwoLevelDownApi, //整场品牌列表--二级业态下拉选
    wholeBrandThreeLevelDownApi, //整场品牌列表--三级业态下拉选
    wholeBrandExportApi, //整场品牌列表--导出
    contractNumberDownApi, // 销售额卡片下钻-品牌列表 - 合同下拉
    bunkNumberDownApi, // 销售额卡片下钻-品牌列表 - 铺位下拉
    brandTypeListApi, // 品牌列表
    brandTypeExportApi, // 品牌列表--导出
    contractdetailApi,
    saleChildApi,
    queryRentNameLikeApi,
    queryListByRentNameApi,
    flowChildApi,
    formatListApi,
    buildingListApi,
    contractListApi,
    rentOutDetailApi,
    queryContractDetail,
    signatureDetailApi, // 新签情况明细页
    signatureBuildingListApi,// 新签情况明细页面楼层下拉选
    signatureFormatListApi,// 新签情况明细页面业态下拉选
    signatureStatusListApi, // 新签情况明细页面类型下拉选
    queryProjectApi,
    queryBrandApi,
    queryCustomerNameApi,
    queryBizModeApi,
    queryContractApi,
    queryAllApi,
    getChargeListApi,
    getChargeNameByTypeListApi,
    // queryChargetypeApi,
    // queryIslitigationApi,
    // queryIsrelationcustomerApi,
    queryConractListApi,
    debtConractExportApi,
    debtConractStatusListApi,
    querySumConractListDebtamtApi,
    queryBillListApi,
    querySumBillDebtamtApi,
    querySumBillDebtamtExportApi,
    manageGuaranteeBuildingDownApi,
    manageGuaranteeFloorDownApi,
    manageGuaranteeChargesDownApi,
    manageGuaranteeDetailApi,
    queryCipNodesStatuslApi, //【改造事项明细】--筛选数据
    queryCipNodeFormApi, // 【改造事项明细】--表格数据
    queryCipNodeDetailApi,  // 【改造节点明细】--表格数据
    queryCipCostDetailApi, // 【改造成本明细】--表格数据
    budgetDetailApi, // 【预算达成明细】整体数据
    noIsShowApi,
    noRentIncomeRateApi,
    noRentIncomeRateDetailApi,
    realDisburseRateApi,
    realDisburseRateDetailApi,
    investPoolSaleDetailApi, //【投资联营】详情页
    queryTwoCompareDetailFormatApi,
    queryTwoProjectDetailApi,
    queryListByFormatApi,
    queryAreaListByFormatApi,
    queryEvenMoreApi,
    queryAreaEvenMoreApi,
    queryInvestEvenMoreApi,
    queryValueEvenMoreApi,
    budgetCardInfoApi,
    budgetCardInfoExportApi,
    twoCalculateExportApi,
    queryTwoCalculateDetailListApi,
    queryTwoCalculateDetailCardApi,
    twoCalculateExportFloorViewApi,
    queryTwoCalculateDetailListFloorViewApi,
    queryTwoCalculateDetailCardFloorViewApi,
    twoCalculateExportManageViewApi,
    queryTwoCalculateDetailListManageViewApi,
    queryTwoCalculateDetailCardManageViewApi,
    twoCalculateExportPeopleViewApi,
    queryTwoCalculateDetailListPeopleViewApi,
    queryTwoCalculateDetailCardPeopleViewApi,
    getHaveViewProjectListApi,
    energyModuleInfoCardListApi,
    energyModuleInfoLineChartApi,
    energyModuleInfoCardExportListApi,
    energyModuleGraphExportApi,
    energyModuleInfoPieChartApi,
    bedgetcExplainSaveApi,
    bedgetcExplainInfoApi,
    bedgetcExplainInfoNewApi,
    bedgetcExplainApproveApi,
    queryPcBuildingDownApi,
    queryPcBuildingInfoApi,
    WhleCalculateExportApi,
    inspectionRouteDetailListApi,
    planRoleDropApi,
    inspectionRouteDetailPointListApi,
    inspectionRouteExportApi,
    inspectionRouteDetailPointPicApi,
    brandMonitoringListApi,
    brandMonitoringExportExcelApi,
    brandMonitoringeditLabelApi,
    brandControlApi,
    getLabelApi,
	equipmentMaintenListApi, // 【设备维保】卡片 - 详情（设备）
    equipmentTypeApi,
    costAnalysisHotelListApi,
    costAnalysisHotelDetailApi,
    exportCostAnalysisHotelListApi,
    costAnalysisBusinessListApi,
    costAnalysisBusinessDetailApi,
    exportCostAnalysisBusinessListApi,
    getCostAnalysisListApi,
    abnormalParkingDetailApi,
    abnormalParkingExportApi,
    collectionRateListApi,
    collectionRateBillListApi,
    queryPcBrandDownDownApi,
    queryPcAssetDownApi,
    queryPcContractCodingDownDownApi
}
